﻿using LibNiconico.NiconicoApi.Extentions;
using LibNiconico.NiconicoApi.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibNiconico.NiconicoApi.Lives.Broadcast
{
    internal class NicoLiveBroadcastStopQueryInfo:NicoUrlAble
    {

        internal string LiveId{get;private set;}

        internal string Token { get; private set; }

        internal NicoLiveBroadcastStopQueryInfo(string liveId, string token)
        {
            this.LiveId = liveId;
            this.Token = token;
        }

        internal override string AsPath()
        {
            return "api/configurestream/" + this.LiveId;
        }

        internal override string AsQuery()
        {
            var queryString = new QueryStrings();
            queryString.Add("key", "end_now");
            queryString.Add("token", this.Token);

            return queryString.ToString();
        }
    }
}
